docs: fix critical documentation inaccuracies#204
Conversation
Critical fixes: - Correct database schema location (persistence_manager.py, not db_schema.py) - Add 7 missing CLI commands (ask, convert, list, stats, monitor, integrations, dipeocc) - Add missing agents to CLAUDE.md (code-polisher, codebase-qna) - Clarify database ownership coordination between backend and package-maintainer Files updated: - docs/agents/backend-development.md: Fixed schema location, added all 12 CLI commands - .claude/agents/dipeo-backend.md: Updated CLI count and database reference - .claude/skills/dipeo-backend/SKILL.md: Clarified domain and schema ownership - CLAUDE.md: Added missing agents, updated CLI command list 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Seunghyun Ji <sorryhyun@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Code Review - PR #204: Fix Critical Documentation InaccuraciesSummaryThis PR addresses critical documentation issues identified in the agent docs audit. The changes are accurate, well-structured, and valuable for improving developer experience. ✅ Code Quality and Best PracticesStrengths:
🔍 Potential IssuesMinor observations (not blockers):
⚡ Performance ConsiderationsN/A - Documentation changes only, no runtime impact. 🔒 Security ConcernsN/A - Documentation changes only, no security implications. 🧪 Test CoverageRecommendations:
Example validation script concept: # scripts/validate_docs.py
import re
from pathlib import Path
def validate_file_refs(doc_path):
"""Check that all file paths in docs exist"""
content = Path(doc_path).read_text()
paths = re.findall(r'`([^`]+\.py)`', content)
for path in paths:
if not Path(path).exists():
print(f"❌ Missing: {path}")📝 Suggested Improvements (Optional)
✨ Overall AssessmentLGTM with minor suggestions! This PR successfully:
The documentation is now significantly more accurate and useful. The minor suggestions above are for future enhancement and don't block merging. Recommendation: Approve and merge after considering the Review completed by Claude Code with verification of all file paths, CLI commands, and agent references. |
|
ok but it seems claude.md is somewhat comprehensive. Given that any agent will get claude.md as context always, I think it should be reduced to some extent @claude |
|
Claude finished @sorryhyun's task —— View job Analyzing CLAUDE.md for size reductionTodo List:
AnalysisCurrent Size: 347 lines total Finding: You're absolutely right - CLAUDE.md has become too comprehensive. Since agents always receive it as context, it should be more concise and reference-focused rather than including detailed examples. Recommended Reductions (33% size reduction: 347 → ~232 lines)1. Compile and Push Section (Lines 47-70: 24 lines → 8 lines)Issue: Too many duplicate examples (stdin, file, custom directory, benefits list) Current: # Validate from file
dipeo compile my_diagram.light.yaml --light
# Validate from stdin (LLM-friendly)
echo '<diagram-content>' | dipeo compile --stdin --light
# Compile and push to MCP directory (from file)
dipeo compile my_diagram.light.yaml --light --push-as my_workflow
# Compile and push from stdin (LLM-friendly workflow)
echo '<diagram-content>' | dipeo compile --stdin --light --push-as my_workflow
# Custom target directory
dipeo compile --stdin --light --push-as my_workflow --target-dir /custom/pathBenefits:
Proposed: dipeo compile my_diagram.light.yaml --light # Validate
dipeo compile --stdin --light --push-as my_workflow # Validate + push to MCP
# Also supports: --target-dir for custom locationSavings: 16 lines (67% reduction in this section) 2. Router Skills Section (Lines 147-208: 62 lines → 15 lines)Issue: Verbose usage patterns with 3 detailed code examples Current: Full bash code blocks showing:
Proposed: **How Router Skills Work:**
- **Thin routers** (~50-100 lines): Decision criteria, doc anchors, escalation paths
- **Progressive**: Use `Skill(dipeo-backend)` to load router → check if task is simple
- **doc-lookup**: Load specific sections: `Skill(doc-lookup) --query "cli-commands"`
- **Token efficiency**: 80-90% reduction (1.5k vs 15k tokens per task)
**When to Use:** Before Task tool invocation or during agent execution
See `.claude/skills/` for detailed skill documentation.Savings: 47 lines (76% reduction in this section) 3. todo-manage Skill Section (Lines 210-249: 40 lines → 8 lines)Issue: 3 full XML examples that are very verbose Current: Has full Proposed: ### todo-manage Skill
Use for comprehensive TODO management on multi-phase projects (3+ phases or 10+ tasks), complex migrations, or large feature implementations.
**Access**: `/dipeotodos` slash command
**Don't use for**: Simple single-task changes (use TodoWrite tool instead)Savings: 32 lines (80% reduction in this section) 4. Adding New Features Section (Lines 285-314: 30 lines → 10 lines)Issue: Duplicates information already in developer guides Current: Full step-by-step instructions for:
Proposed: ## Adding New Features
- **New Node Types**: TypeScript spec → codegen → handlers → update schema. See [Developer Guide](docs/guides/developer-guide-diagrams.md)
- **New Diagram Formats**: Create strategy (parser/transformer/serializer). See [Developer Guide](docs/guides/developer-guide-diagrams.md#adding-new-diagram-formats)
- **GraphQL Operations**: Add definition in `/dipeo/models/src/frontend/query-definitions/` → codegen. See [GraphQL Layer](docs/architecture/graphql-layer.md)
- **API/UI Changes**: Modify schema → `make graphql-schema` or work in `/apps/web/src/`Savings: 20 lines (67% reduction in this section) Summary of Proposed Changes
Overall Impact: 347 lines → ~232 lines (33% reduction) RecommendationThe key principle: CLAUDE.md should be a quick reference with pointers to detailed docs, not duplicate the detailed docs themselves. Should I proceed with these reductions? |
|
yeah, go ahead @claude |
|
Claude finished @sorryhyun's task —— View job CLAUDE.md size reduction complete ✓Todo List:
SummarySuccessfully reduced CLAUDE.md from 347 to 229 lines (34% reduction, -118 lines) by streamlining verbose sections while preserving essential information: Changes made:
Key principle applied: CLAUDE.md should be a quick reference with pointers to detailed docs, not duplicate the detailed docs themselves. This makes the file more efficient as context for agents while maintaining all essential information through documentation links. | Branch |
Reduced CLAUDE.md from 347 to 229 lines (-118 lines, 34% reduction) by streamlining verbose sections while preserving essential information: - Compile and Push: 24 → 8 lines (removed redundant examples) - Router Skills: 62 → 15 lines (removed verbose usage patterns) - todo-manage Skill: 40 → 8 lines (removed XML examples) - Adding New Features: 30 → 4 lines (referenced detailed guides) CLAUDE.md should be a quick reference with pointers to detailed docs, not duplicate the detailed docs themselves. Co-authored-by: Seunghyun Ji <sorryhyun@users.noreply.github.com>
Code Review - PR #204: Fix Critical Documentation InaccuraciesSummaryThis PR successfully addresses critical documentation issues that were blocking developers from finding correct implementation locations. The changes are accurate and well-targeted. ✅ Strengths1. Critical Path Fix ⭐⭐⭐
2. CLI Documentation Completeness
3. Ownership Clarification
4. Missing Agents Added
|
Summary
Fixed critical documentation issues identified in agent docs audit:
Critical Fixes
Database Schema Location⚠️ ⚠️ ⚠️
apps/server/infra/db_schema.py/dipeo/infrastructure/execution/state/persistence_manager.pyCLI Commands Documentation⚠️ ⚠️
CLAUDE.md Missing Agents
code-polisherandcodebase-qnaagentsFiles Changed
docs/agents/backend-development.md- Fixed schema location, added all 12 CLI commands.claude/agents/dipeo-backend.md- Updated CLI count and database reference.claude/skills/dipeo-backend/SKILL.md- Clarified domain and schema ownershipCLAUDE.md- Added missing agents, updated CLI command listImpact
Fixes #203
🤖 Generated with Claude Code